package com.tianyi.vo.menu;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

/**
 * 用户菜单vo
 *
 * @author cuixuhui
 * @date 2020/07/03
 */
public class MenuBean {

    @JSONField(name = "key")
    private Long id;

    private String icon;

    private String title;

    private String url;

    @JSONField(serialize = false)
    private Long parentId;

    private List<MenuBean> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public List<MenuBean> getChildren() {
        return children;
    }

    public void setChildren(List<MenuBean> children) {
        this.children = children;
    }
}
